/*
 * @Author: yuluo
 * @Date: 2025-08-28
 * @LastEditors: yuluo
 * @LastEditTime: 2025-09-05
 * @FilePath: \Projecte:\gitee\GD32F427\gd32-f427-BootLoader\App\inc\app_timer.h
 * @Description: 
 * 如有特殊注意事项请填写
 * Copyright (c) by ${yuluo}, All Rights Reserved. 
 */

#ifndef APP_TIMER_H
#define APP_TIMER_H

typedef struct
{
    uint64_t System_Timeline;       /* 系统时间线 2^64*10ms = 184467440737095516160ms = 184467440737095516.160s ≈ 5849424173550年 */
    uint8_t System_10ms;            /* 10ms标志位*/
}sys_timer_t;

extern sys_timer_t sys_timer;

void system_timer_init(void);
uint8_t System_Time_Interval(uint64_t start_timer, uint64_t interval_timer);

#endif // !APP_TIMER_H
